

import apis from './apis'
import uniRequest from './uniRequest'
import upload from './uniUpload'



export const uploadApi = apis.upload;



export const postUpdateState = (data:any) => uniRequest({
  method: "post",
  url: apis.updateState,
  data
})




export const postCardBeautySalonLike = (data:any) => uniRequest({
  method: "post",
  url: apis.cardBeautySalonLike,
  data
})



export const postActivityClassMeiye = () => uniRequest({
  method: "post",
  url: apis.activityClassMeiye
})



export const postNearbyList = (data:any) => uniRequest({
  method: "post",
  url: apis.nearbyList,
  data
})




export const postPickOfThe = (data:any) => uniRequest({
  method: "post",
  url: apis.pickOfThe,
  data
})


export const postHotCardList = (data:any) => uniRequest({
  method: "post",
  url: apis.hotCardList,
  data

})

export const postUpbrand = (data:any) => uniRequest({
  method: "post",
  url: apis.upbrand,
  data

})

export const postLessayGood = (data:any) => uniRequest({
  method: "post",
  url: apis.lessayGood,
  data

})

export const postBeautyCardCategoryType = () => uniRequest({
  method: "post",
  url: apis.beautyCardCategoryType

})

export const postSubmitWithdrawal= (data:any) => uniRequest({
  method: "post",
  url: apis.submitWithdrawal,
  data
})



export const postSeletWithdrawal = (data:any) => uniRequest({
  method: "post",
  url: apis.seletWithdrawal,
  data

})

export const postQueryBankList = () => uniRequest({
  method: "post",
  url: apis.queryBankList

})


export const postWithdrawalRecord = (data:any) => uniRequest({
  method: "post",
  url: apis.withdrawalRecord,
  data

})


export const postTradeRecordList = (data:any) => uniRequest({
  method: "post",
  url: apis.tradeRecordList,
  data
})


export const postClassMeiye = () => uniRequest({
  method: "post",
  url: apis.classMeiye
})

export const postMyCard = (data:any) => uniRequest({
  method: "post",
  url: apis.myCard,
  data
})



export const postUpBanner = (data:any) => uniRequest({
  method: "post",
  url: apis.upBanner,
  data
})


export const postUpTime = (data:any) => uniRequest({
  method: "post",
  url: apis.upTime,
  data
})


export const postSelectBanner = (data:any) => uniRequest({
  method: "post",
  url: apis.selectBanner,
  data
})


export const postSelectShopOrBoss = (data:any) => uniRequest({
  method: "post",
  url: apis.selectShopOrBoss,
  data
})

export const postBrowseArticle = (data:any) => uniRequest({
  method: "post",
  url: apis.browseArticle,
  data
})


export const postPickOfTheWeek = () => uniRequest({
  method: "post",
  url: apis.pickOfTheWeek
})


export const postClassify = () => uniRequest({
  method: "post",
  url: apis.classify
})

export const postQueryBank = (data:any) => uniRequest({
  method: "post",
  url: apis.queryBank,
  data
})




export const postGroundPage = (data:any) => uniRequest({
  method: "post",
  url:apis.groundPage,
  data
})


export const postInfo = (data:any) => uniRequest({
  method: "post",
  url:apis.info,
  data
})

export const postType = () => uniRequest({
  method: "post",
  url:apis.type
})

export const postPushArticle = () => uniRequest({
  method: "post",
  url:apis.pushArticle
})


export const postUpHead = (data:any) => uniRequest({
  method: "post",
  url:apis.upHead,
  data
})

export const postUpColor = (data:any) => uniRequest({
  method: "post",
  url:apis.upColor,
  data
})


export const postSalonDetails = (data:any) => uniRequest({
  method: "post",
  url:apis.salonDetails,
  data
})



export const postBackgroundColor = () => uniRequest({
  method: "post",
  url: apis.backgroundColor
})


export const postOrderDetails = (data:any) => uniRequest({
  method: "post",
  url: apis.orderDetails,
  data
})


export const postBeautySalonOrder = (data:any) => uniRequest({
  method: "post",
  url: apis.beautySalonOrder,
  data
})


export const postMeiyeshare = (data:any) => uniRequest({
  method: "post",
  url: apis.meiyeshare,
  data
})



export const postGiveALike = (data:any) => uniRequest({
  method: "post",
  url: apis.giveALike,
  data
})


export const postBeautifuLessay = (data:any) => uniRequest({
  method: "post",
  url: apis.beautifuLessay,
  data
})



export const postBeautyCardSelect = (data:any) => uniRequest({
  method: "post",
  url: apis.beautyCardSelect,
  data
})



export const postBeautyCardAdd = (data:any) => uniRequest({
  method: "post",
  url: apis.beautyCardAdd,
  data
})


export const postUpdateCardStatus = (data:any) => uniRequest({
  method: "post",
  url: apis.updateCardStatus,
  data
})


export const postDetailSalonCard = (data:any) => uniRequest({
  method: "post",
  url: apis.detailSalonCard,
  data
})




export const postLessaySelect = (data:any) => uniRequest({
  method: "post",
  url: apis.lessaySelect,
  data
})



export const postLessayMydelet = (data:any) => uniRequest({
  method: "post",
  url: apis.lessayMydelet,
  data
})


export const postLessayMyUpdate = (data:any) => uniRequest({
  method: "post",
  url: apis.lessayMyUpdate,
  data
})


export const postLessayMySelect = (data:any) => uniRequest({
  method: "post",
  url: apis.lessayMySelect,
  data
})



export const postBeautifuLessayMy = (data:any) => uniRequest({
  method: "post",
  url: apis.beautifuLessayMy,
  data
})


export const postbBautySalonDetails = (data:any) => uniRequest({
  method: "post",
  url: apis.beautySalonDetails,
  data
})


export const postAddCustomOpenShop = (data:any) => uniRequest({
  method: "post",
  url: apis.addCustomOpenShop,
  data
})


export const postReleaseLessayMy = (data:any) => uniRequest({
  method: "post",
  url: apis.releaseLessayMy,
  data
})


export const postQueryBeautySalon = (data:any) => uniRequest({
  method: "post",
  url: apis.queryBeautySalon,
  data
})

export const postBeauty = (data:any) => uniRequest({
  method: "post",
  url: apis.beauty,
  data
})




export const postUpLoadVideo =(filePath:string)=> upload({
  url:apis.uploadVideo,
  name:'file',
  filePath

})

export const postUpLoadFile =(filePath:string)=> upload({
    url:apis.upload,
    name:'file',
    filePath

})

export const postSeeone = (data:any) => uniRequest({
  method: "post",
  url: apis.seeone,
  data
})



export const postQuery = (data:any) => uniRequest({
  method: "post",
  url: apis.query,
  data
})



export const postGetPhone = (data:any) => uniRequest({
  method: "post",
  url: apis.getPhone,
  data
})


export const postfreshFocus = (data:any) => uniRequest({
  method: "post",
  url: apis.freshFocus,
  data
})

export const postIntegralCard = () => uniRequest({
  method: "post",
  url: apis.integralcard
})

export const postIntegralCardAll = (data:any) => uniRequest({
  method: "post",
  url: apis.integralcardAll,
  data
})

export const postSkincareCardAll = (data:any) => uniRequest({
  method: "post",
  url: apis.skincarecard,
  data
})


export const postDetailedCard = (data:any) => uniRequest({
  method: "post",
  url: apis.detailedcard,
  data
})


export const postMyinformation = (data:any) => uniRequest({
  method: "post",
  url: apis.myinformation,
  data
})


export const postSpecialofferdAll = (data:any) => uniRequest({
  method: "post",
  url: apis.specialofferdAll,
  data
})


export const postCommunityleader =  (data:any) => uniRequest({
  method: "post",
  url: apis.communityleader,
  data
})




export const postSeemyorder = (data:any) => uniRequest({
  method: "post",
  url: apis.seemyorder,
  data
})


export const postOrderdetails = (data:any) => uniRequest({
  method: "post",
  url: apis.orderdetails,
  data
})







export const postCategoryListparentId = (data:any) => uniRequest({
  method: "post",
  url: apis.categoryListparentId,
  data
})




export const postCategoryList = async () => {

  let res = await uniRequest({
    method: "post",
    url: apis.categoryList,
  })

  return res.data

}


export const postShopTypelist = (data:any) => uniRequest({
  method: "post",
  url: apis.shopTypelist,
  data
})


export const postAddCart = (data:any) => uniRequest({
  method: "post",
  url: apis.addCart,
  data
})

export const postShopCartPlus = (data:any) => uniRequest({
  method: "post",
  url: apis.shopCartPlus,
  data
})

export const postShopCartMinus = (data:any) => uniRequest({
  method: "post",
  url: apis.shopCartMinus,
  data
})


export const postGetCartList = (data:any) => uniRequest({
  method: "post",
  url: apis.getCartList,
  data
})

export const postSeeshopone = (data:any) => uniRequest({
  method: "post",
  url: apis.seeshopone,
  data
})


export const postShoptosettle = (data:any) => uniRequest({
  method: "post",
  url: apis.shoptosettle,
  data
})


export const postAddinset = (data:any) => uniRequest({
  method: "post",
  url: apis.addinset,
  data
})



export const postMyaddress = (data:any) => uniRequest({
  method: "post",
  url: apis.myaddress,
  data
})

export const postUpdateaddress = (data:any) => uniRequest({
  method: "post",
  url: apis.updateaddress,
  data
})





export const postShare = (data:any) => uniRequest({
  method: "post",
  url: apis.share,
  data
})


export const postPlaceanorder = (data:any) => uniRequest({
  method: "post",
  url: apis.placeanorder,
  data
})

export const postPayOrder = (data:any) => uniRequest({
  method: "post",
  url: apis.payOrder,
  data
})



export const postUporder = (data:any) => uniRequest({
  method: "post",
  url: apis.uporder,
  data
})

export const postGenerateorder = (data:any) => uniRequest({
  method: "post",
  url: apis.generateorder,
  data
})


export const postFrontwarehouse = (data:any) => uniRequest({
  method: "post",
  url: apis.frontwarehouse,
  data
})





export const postSelertbeiye = (data:any) => uniRequest({
  method: "post",
  url: apis.selertbeiye,
  data
})




export const postgetUserInfo = (data:any) => uniRequest({
  method: "post",
  url: apis.getUserInfo,
  data: data
})


export const postFreshfoodstore = () => uniRequest({
  method: "post",
  url: apis.freshfoodstore
})


export const postUpdateOrderStatus = (data:any) => uniRequest({
  method: "post",
  url: apis.updateOrderStatus,
  data
})























/*---------------------*/



export const postsms = (data = {}) => uniRequest({
  method: "post",
  url: apis.sms,
  data
})








